<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, maximum-scale=1"/>

    <title>打地鼠</title>
    <style>
        html,body{
            padding: 0;
            margin: 0;
        }
        .canvas-wrap {
            padding: 0;
            margin: 0;
            position: relative;
            display: inline-block;
            width: 100%;
            height: 100%;
        }

        .canvas-wrap > canvas {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }

        .canvas-wrap > #bg {
            z-index: 10;
        }

        #game {
            z-index: 100;
        }

        .game-start-button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #C46464;
            z-index: 110;
            font-size: 40px;
            background-color: #fafafa;

        }
    </style>
</head>
<body>
<div style="width: 480px;height: 320px;position: relative">
    <div class="canvas-wrap">
        <canvas id="bg" width="480" height="320"></canvas>
        <canvas id="game" width="480" height="320"></canvas>
    </div>
    <div class="game-start-button">点击开启游戏</div>
</div>

<p></p>
<canvas id="imgss"></canvas>
<script src="engine.js"></script>
<script src="game.js"></script>

</body>

</html>